package com.zysc.processflow.service;

import com.zysc.processflow.entity.Personrole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zysc.processflow.entity.Role;

import java.util.List;

/**
 * <p>
 * 人员角色表 服务类
 * </p>
 *
 * @author 正元智慧城市_
 * @since 2022-11-23
 */
public interface IPersonroleService extends IService<Personrole> {

    Boolean DeletePersonroleByPersonidAndRoleid(Personrole entity);

    Boolean saveOrUpdatePersonroleInfo(Personrole entity);

    Boolean SaveOrUpdatePersonRole(String personid, String personname, String orgid, String orgname, List<String> roleidlist);

    List<Role> getroleListByPersonid(String personid);
}
